package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-07-25 16:33
 */
public class Test04 {
    public static void main(String[] args) {
        String s1="aaaBBB";
        String s2="aaaBBb";
        System.out.println(s1.equals(s2));
        System.out.println(s1.equalsIgnoreCase(s2));
        System.out.println("-----------------");
        String s3="abcdefghi";
        System.out.println(s3.contains("abc"));
        System.out.println(s3.contains("abd"));
        System.out.println("-----------------");
        System.out.println(s3.startsWith("abc"));
        System.out.println(s3.startsWith("abx"));
        System.out.println(s3.endsWith("ghi"));
        System.out.println(s3.endsWith("ghj"));
        System.out.println("-----------------");
        String s4="";
        System.out.println(s4.isEmpty());
        System.out.println(s4.length());

        int[] a=new int[0];
        System.out.println(a.length);
    }
}
